package com.freesky.biz.rights.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freesky.biz.rights.domain.EncryptBatchEntity;
import com.freesky.biz.rights.domain.EncryptCodeEntity;
import com.freesky.biz.rights.pojo.EncryptCodePo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 券码
 */
public interface EncryptCodeMapper extends BaseMapper<EncryptCodeEntity> {

    Long selectMaxId();

    int batchAddEncryptCode(@Param("list") List<EncryptCodeEntity> list);

    Page selectEncrypCodePage(Page page, @Param("entity") EncryptCodePo entity);
    List<EncryptCodePo> selectEncrypCodePage(@Param("entity") EncryptCodePo entity);
}
